
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>应用下载中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            position: relative;
        }
        .browser-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            z-index: 1000;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            padding: 20px;
            text-align: center;
        }
        .browser-mask.show {
            display: flex;
        }
        .browser-mask h2 {
            font-size: 1.8rem;
            margin-bottom: 20px;
        }
        .browser-mask p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            max-width: 80%;
        }
        .browser-btn {
            padding: 12px 25px;
            background-color: #4285f4;
            color: white;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        .browser-btn i {
            margin-right: 10px;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        header {
            text-align: center;
            padding: 40px 0 20px;
        }
        .logo {
            width: 100px;
            height: 100px;
            margin: 0 auto 15px;
            border-radius: 20px;
            background-color: #4285f4;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: bold;
        }
        h1 {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #222;
        }
        .subtitle {
            font-size: 1rem;
            color: #666;
            margin-bottom: 20px;
        }
        .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin: 20px 0;
        }
        .feature {
            flex-basis: 100%;
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        .feature-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #4285f4;
        }
        .download-section {
            text-align: center;
            padding: 30px 20px;
            background: linear-gradient(135deg, #4285f4, #34a853);
            color: white;
            border-radius: 10px;
            margin: 30px 0;
        }
        .download-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }
        .download-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin-top: 20px;
        }
        .download-btn {
            padding: 12px 25px;
            border-radius: 50px;
            background: white;
            color: #4285f4;
            text-decoration: none;
            font-weight: bold;
            display: flex;
            align-items: center;
            transition: all 0.3s;
            width: 80%;
            max-width: 250px;
            justify-content: center;
        }
        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .download-btn i {
            margin-right: 10px;
            font-size: 1.2rem;
        }
        footer {
            text-align: center;
            padding: 20px 0;
            color: #666;
            font-size: 0.8rem;
        }
        @media (min-width: 768px) {
            .logo {
                width: 120px;
                height: 120px;
                font-size: 24px;
            }
            h1 {
                font-size: 2.5rem;
            }
            .subtitle {
                font-size: 1.2rem;
            }
            .feature {
                flex-basis: 30%;
                padding: 30px;
            }
            .download-buttons {
                flex-direction: row;
                justify-content: center;
            }
            .download-btn {
                width: auto;
            }
        }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <div class="browser-mask" id="browserMask">
        <h2>请使用浏览器打开</h2>
        <p>检测到您当前在微信/QQ等应用中访问，为获得最佳体验，请点击下方按钮在浏览器中打开本页面</p>
        <a href="#" class="browser-btn" id="openInBrowser">
            <i class="fas fa-external-link-alt"></i> 在浏览器中打开
        </a>
    </div>

    <div class="container">
        <header>
            <!-- <div class="logo">APP</div> -->
            <h1>门窗设计大师</h1>
            <p class="subtitle">让工作更高效</p>
        </header>

      

        <section class="download-section">
            <h2 class="download-title">立即下载体验</h2>

            <div class="download-buttons">
                <a href="https://res.viewmastercloud.com/App/app-viewmax.apk" class="download-btn">
                    <i class="fab fa-google-play"></i> Android 下载
                </a>
                <a href="https://apps.apple.com/cn/app/id1400581405" class="download-btn">
                    <i class="fab fa-apple"></i> iOS 下载
                </a>
            </div>
        </section>

        <footer>
            <p>© 2025 极景门窗有限公司. 保留所有权利</p>
            <p>客服电话: 400-169-0009</p>
        </footer>
    </div>

    <script>
        // 检测是否在微信/QQ等内置浏览器中打开
        function isInAppBrowser() {
            const ua = navigator.userAgent.toLowerCase();
            return ua.match(/micromessenger/i) || ua.match(/qq\//i) || ua.match(/weibo/i);
        }

        // 显示浏览器遮罩
        if(isInAppBrowser()) {
            document.getElementById('browserMask').classList.add('show');
            
            // 尝试在外部浏览器打开
            document.getElementById('openInBrowser').addEventListener('click', function(e) {
                e.preventDefault();
                const url = window.location.href;
                if(navigator.userAgent.match(/iphone|ipad|ipod/i)) {
                    window.location.href = 'googlechrome://' + url;
                } else {
                    window.location.href = 'intent://' + url + '#Intent;scheme=http;package=com.android.chrome;end';
                }
                setTimeout(function() {
                    window.location.href = url;
                }, 2000);
            });
        }

        // 更好的移动端体验
        document.addEventListener('DOMContentLoaded', function() {
            if(window.innerWidth <= 768) {
                // 移动端特定调整
                document.querySelector('header').style.padding = '20px 0 10px';
            }
        });
    </script>
</body>
</html>
